<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>10-小米导航菜单</title>
    <style>
        *{
            margin:0;
            padding:0;
        }
        .box{
            width: 1000px;
            margin:0 auto;
        }
        .box a{
            padding: 9px 13px;
            float: left;
            color: #fff;
            background:blue;
            text-decoration: none;
        }
        .box a:hover{
            background: orange;
        }
        .box a.cur{
            background: orange;
        }
    </style>
</head>
<body>
    <div class="box">
        <a href="" class="cur">HTML</a>
        <a href="">CSS3</a>
        <a href="">JAVA</a>
        <a href="">PYTHON</a>
    </div>
</body>
</html>